<?php
/**
 * The template used for displaying page content in page.php
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

<div id="list_events_right">
<h3>Events</h3>
<ul>
			<?php
				
				$args = array(
							'post_type'=> 'vs_event',
							'order'    => 'ASC',
							'orderby' => 'begindate',
							'posts_per_page' => 6,
						);
				$_REQUEST['scope'] = 'next';
				wp_reset_query();// Reset Query
				query_posts( $args );
				// The Loop
				while ( have_posts() ) : the_post();
				?>
				<li>
					<span><?php echo date('m/d/Y', get_post_meta(get_the_ID(), 'begindate', true)).' - '.date('m/d/Y', get_post_meta(get_the_ID(), 'enddate', true)); ?></span><br/>
					<a href="<?php the_permalink();?>"><?php the_title();?></a>
				</li>
			<?php
				endwhile;
				
				// Reset Query
				wp_reset_query();
			?>
</ul>		
</div>
